package com.devunion.reader.server.mediator;

import com.devunion.bogdan.model.project.Author;
import com.devunion.reader.client.to.AuthorTo;

/**
 * @author Timoshenko Alexander 28.05.2009 : 11:15:49
 */
public class AuthorMediator implements IMediator<Author, AuthorTo> {
    public AuthorTo copyFromEntity(Author anEntity) {
        AuthorTo theTo = new AuthorTo();
        theTo.setFirstName(anEntity.getFirstName());
        theTo.setLastName(anEntity.getLastName());
        return theTo;
    }
}
